#ifndef  SC_MATERIAL_H
#define  SC_MATERIAL_H
#include "sc_texture.h"
#include "sc_common_type.h"
BEGIN_K3D
using namespace std;
struct SMaterial
{
	string name;
	Color ambient;
	Color diffuse;
	Color specular;
	STexture* texture;
	SMaterial();
	~SMaterial();
	void sample(float u,float v,float* r,float* g,float* b,float* a);
};
struct SMatMng
{
private:
	 
public:
	static void loadFromFile(const char*);
	static SMaterial* getMat(const char*);
};
END_K3D
#endif